<template>
  <div class="box">
    <router-view></router-view>
    <router-view name="foot"></router-view>
  </div>
</template>

<script>
export default {
}
</script>
<style lang="scss">
@import "@/lib/reset.scss";
.box {
  @include flexbox();
  @include flex-direction(column);
  @include rect(100%, 100%);
  .header {
    @include flex();
    @include flexbox();
    @include flex-direction(column);
    @include rect(100%, auto);
    @include overflow(auto);
    .top {
      @include rect(100%, 0.55rem);
      border-bottom: 1px solid #ccc;
    }
    .middle {
      @include flex();
      @include rect(100%, auto);
      @include overflow(auto);
    }
  }
  .footer {
    border-top: 1px solid #cccc;
    @include rect(100%, 0.55rem);
    ul {
      @include rect(100%, 100%);
      @include flexbox();
      li {
        @include flex();
        @include flexbox();
        @include flex-direction(column);
        @include justify-content();
        @include align-items();
        @include rect(100%, 100%);
        &.router-link-exact-active,.router-link-active {
          color: red;
        }
        span {
          font-size: 25px;
        }
        p {
          font-size: 15px;
        }
      }
    }
  }
}
</style>
